package com.example.microinvestuser.dao;
import com.example.microinvestcommon.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserGetMapper {

    //返回用户信息
    UsersVo getUserInfo(Long userId);

    //返回用户收藏信息
    List<UserStockFavoritesVo> getUserStockFavorites(Long userId);

    //用户查看自己购买股票信息
    List<BuyStockVo> getUserBuyStockInfo(Long userId);

    //用户查看自己卖出股票信息
    List<SellStockVo> getUserSellStockInfo(Long userId);

    //返回用户订单信息
    List<UserOrderVo> getUserOrder(Long userId);

    /**
     *
     * @param userId
     * @param stockSymbol
     * @return 根据股票名称返回信息
     */
    List<UserOrderVo> getUserOrderByStockSymbol(Long userId,String stockSymbol);

    /**
     *
     * @param searchString
     * @return
     */
    List<StockNumSymbolVo>  userSearchSymbol(@Param("searchString") String searchString);

    /**
     *
     * @param userId
     * @param stockSymbol
     * @return
     */
    Boolean isUserStarThisStock(Long userId,String stockSymbol);

    //返回stockSummary
    String getUserStockSummaryToString(Long userId);
}
